<? if($this->pageArray['pageNumber']>0):?>
			<form name="helpIndexForm" id="helpIndexForm" action="administrator-product-dodel" method="post">
				<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CEE7FF" style="border-collapse:collapse">
					<tr>
					  <td colspan="6" class="se">
					  	<div id="updownProduct"><a href="javascript:getProductsIsShowed(1);">上架产品</a><a href="javascript:getProductsIsShowed(0);">下架产品</a></div>
					  </td>
					</tr>
					<tr>
						<td width="25%" class="bbgg">
							<strong>产品名称</strong>
						</td>
						<td width="25%" class="bbgg">
							<strong>发表时间</strong>
						</td>
						<td width="13%" class="bbgg">
							<strong>会员名称</strong>
						</td>
						<td width="13%" class="bbgg">
							<strong>修 改</strong>
						</td>
						<td width="13%" class="bbgg">
							<strong>栏 目</strong>
						</td>
						<td width="7%" class="bbgg">
							<strong>类型</strong>
						</td>
						<td width="6%" class="bbgg">
							<strong>操作</strong>
						</td>
					</tr>		
					<? for($i=0;$i<count($this->itemArray);$i++):?>						
					<tr bgcolor="#FFFFFF">
						<td align="center" valign="middle">
							<div><a target="_blank" href="<?=MY_URL?>/product-detail-id-<?=$this->itemArray[$i]['itemid']?>/<?=$this->encodeName($this->itemArray[$i]['subject'])?>/"><img src="<?=$this->itemArray[$i]['cut_url']?>" width="50px" border="0" /></a></div>
							<div align="center"><a target="_blank" href="<?=MY_URL?>/product-detail-id-<?=$this->itemArray[$i]['itemid']?>/<?=$this->encodeName($this->itemArray[$i]['subject'])?>/?>.html"><?=$this->itemArray[$i]['subject']?></a></div>
						</td>
						<td align="center">
							<?=date('Y-m-d H:i:s',$this->itemArray[$i]['add_time'])?>
						</td>
						<td align="center">
							<a href="administrator-user-more?uid=<?=$this->itemArray[$i]['uid']?>&type=<?=$this->itemArray[$i]['member_type']?>&action=intro"><?=$this->itemArray[$i]['username']?></a>
						</td>
						<td align="center">
							<a href="administrator<?=CHOSING_DE?>product<?=CHOSING_DE?>edit?itemid=<?=$this->itemArray[$i]['itemid']?>">修 改</a>
						</td>
						<td align="center">
							<?if($this->itemArray[$i]['featureid']==0):?>
								未分栏目
							<?else:?>
								<?=$this->itemArray[$i]['feature_name']?>
							<?endif;?>
						</td>
						<td align="center">
							<?if($this->itemArray[$i]['type']=='1'):?>
							最热
							<?elseif($this->itemArray[$i]['type']=='2'):?>
							最新
							<?elseif($this->itemArray[$i]['type']=='3'):?>
							推荐
							<?elseif($this->itemArray[$i]['type']=='4'):?>
							滚动
							<?else:?>
							无
							<?endif;?>
						</td>
						<td align="center">
							<input type="checkbox" name="itemArray[]" value="<?=$this->itemArray[$i]['itemid']?>" />
						</td>
					</tr>
					<? endfor;?>													
				</table>
				<br />
				<div style="margin:10px">
					<!--
					<select onchange="setFeature(this);" style="float:right" name="featureid">
						<option value="no">选择要分配到的栏目</option>
						<?foreach($this->featureArray as $value):?>
						<option value="<?=$value['featureid']?>"><?=$value['name']?></option>
						<?endforeach;?>
						<option value="0">取消分配的栏目</option>
					</select>
					-->
					<input type="button" onclick="setProductType('1')" value="设为最热" />&nbsp;<input type="button" onclick="setProductType('2')" value="设为最新" />&nbsp;<input onclick="setProductType('3')" type="button" value="设为推荐" />&nbsp;<input onclick="setProductType('4')" type="button" value="设为滚动" />&nbsp;<input onclick="setProductType(0)" type="button" value="取消设定" />
				</div>
				<div>
				　<input onclick="setIsShowed(1);" value="上架" type="button" />　<input onclick="setIsShowed(0);" value="下架" type="button" />
				</div>
				<div style="margin:10px">
					全选<input type="checkbox" onClick="selectAll(this,'helpIndexForm','itemArray[]');" />　
					<input onClick="return checkShouldDelItems('helpIndexForm','itemArray[]',1);" type="submit" value="删除"/>　
				</div>
				<div class="factory_page">共 <?=$this->pageArray['pageNumber']?> 页　<?=$this->pageString?></div>
			</form>
<?else:?>
<?=$this->getMsg('该分类下暂无产品信息!');?>
<?endif;?>
<script>
function setFeature(thisSelect){
	if(!checkShouldDelItems('helpIndexForm','itemArray[]',1)){
		$(thisSelect).val('no');
		return false;
	}
	$('#helpIndexForm').attr('action','administrator-product-dofeature');
	$('#helpIndexForm').submit();
}
function setProductType(type){
	if(!checkShouldDelItems('helpIndexForm','itemArray[]',1)){
		return false;
	}
	$('#helpIndexForm').attr('action','administrator-product-setproducttype?type='+type);
	$('#helpIndexForm').submit();
}
function setIsShowed(mode){
	if(!checkShouldDelItems('helpIndexForm','itemArray[]',1)){
		return false;
	}
	$('#helpIndexForm').attr('action','administrator-product-setshow?isshow='+mode);
	$('#helpIndexForm').submit();
}
function getProductsIsShowed(mode){
	productEffection.is_showed=mode;
	productEffection.showAll(1,0);
}
</script>